package cn.tradewin.advisor.commons.selectmodel;

import java.util.Map;

import org.apache.tapestry5.OptionModel;

import cn.tradewin.advisor.persist.model.CodeLabel;

public class CodeLabelOptionModel implements OptionModel {

	private CodeLabel option;
	
	public CodeLabelOptionModel(CodeLabel option) {
		this.option = option;
	}
	
	@Override
	public String getLabel() {
		return option.getLabel();
	}

	@Override
	public boolean isDisabled() {
		return false;
	}

	@Override
	public Map<String, String> getAttributes() {
		return null;
	}

	@Override
	public Object getValue() {
		return option;
	}

}
